import { Routes, Route, Navigate } from 'react-router-dom';
import Test from '../pages/test';
import ApplicationPage from '../pages/operations/application/page';
import OrganizePage from '../pages/operations/organize/page';
import UserPage from '@/pages/operations/user/page';
import DepartmentPage from '@/pages/operations/department/page';
import RolePage from '@/pages/operations/role/page';
import React from 'react';
import DictionaryPage from '@/pages/dictionary/dictionary-page';
import CoordinationPage from '@/pages/operations/coordination/page';
import IntegralPage from '@/pages/operations/integral/integral-page';
import ContactPage from '@/pages/operations/contact/contact-page';

const LayoutRoutes = () => {
  return (
    <>
      <Routes>
        <Route path='coordination/*' element={<CoordinationPage />} />
        <Route path='integral/*' element={<IntegralPage />} />
        <Route path='contact/*' element={<ContactPage />} />
        <Route path='test' element={<Test />} />
        <Route path='application/*' element={<ApplicationPage />} />
        <Route path='organize/*' element={<OrganizePage />} />
        <Route path='user/*' element={<UserPage />} />
        <Route path='department/*' element={<DepartmentPage />} />
        <Route path='role/*' element={<RolePage />} />
        <Route path='dictionary/*' element={<DictionaryPage />} />
        <Route index element={<Navigate to='coordination' />} />
        <Route path='*' element={<div>not found</div>} />
      </Routes>
    </>
  );
};

export default LayoutRoutes;
